import bilili.__main__ as bilili
import sys


def download_video(url):
    # 调用__main__中的main函数
    sys.argv = ["url", url,"-y"]
    bilili.main()


if __name__ == "__main__":
    url = "https://www.bilibili.com/video/BV1me411n7eu/"
    download_video(url)
